# -*- coding: utf-8 -*-
def use_logging(func):
    def wrapper(*args, **kwargs):
        print("[debug] %s is running" % func.__name__)
        return func(*args, **kwargs)

    return wrapper


@use_logging
def bar():
    print('i am bar')


@use_logging
def bar2():
    print('i am bar2')


bar()
bar2()
